//
//  AccountInterface.h
//  DaJiang
//
//  Created by sally on 16/10/12.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "InterfaceBase.h"
typedef NS_ENUM(NSUInteger, OrderStatusType) {
  OrderStatusType_Ing,     //进行中
  OrderStatusType_Comment, //待评价
  OrderStatusType_End,     //已结束
};

@interface AccountInterface : InterfaceBase

- (id)init;

#pragma mark - 账户相关
//发送验证码
- (void)sendCaptchaWithPhone:(NSString *)phone
                  completion:(completion_t_code)completion
                       error:(error_t)error;

//验证验证码并注册
- (void)registerWithPhone:(NSString *)phone
                  captcha:(NSString *)captcha
                 password:(NSString *)password
               completion:(completion_t_user)completion
                    error:(error_t)error;

//登录
- (void)loginWithPhone:(NSString *)phone
              password:(NSString *)password
            completion:(completion_t)completion
                 error:(error_t)error;

//完善用户资料
- (void)updateUserInfoWithUserName:(NSString *)userName
                    userProfilePic:(NSString *)userProfilePic
                      locationName:(NSString *)locationName
                            bigPic:(NSString *)bigPic
                           proDesc:(NSString *)proDesc
                          proTitle:(NSString *)proTitle
                        topicIndex:(NSString *)topicIndex
                       topicIndex2:(NSString *)topicIndex2
                        completion:(completion_t)completion
                             error:(error_t)error;

//设置用户密码
- (void)modifyPswWithPhone:(NSString *)phone
               oldPassword:(NSString *)oldPassword
                  password:(NSString *)password
                confirmPwd:(NSString *)confirmPwd
                completion:(completion_t)completion
                     error:(error_t)error;

//重置用户密码
- (void)resetPswWithPhone:(NSString *)phone
                 password:(NSString *)password
                  captcha:(NSString *)captcha
               completion:(completion_t)completion
                    error:(error_t)error;

//信鸽注册设备
- (void)registerDeviceWithDeviceId:(NSString *)deviceId
                        completion:(completion_t)completion
                             error:(error_t)error;

//信鸽注销设备
- (void)deleteDeviceWithDeviceId:(NSString *)deviceId
                      completion:(completion_t)completion
                           error:(error_t)error;

//上传图片
- (void)uploadPicWithImage:(UIImage *)image
                completion:(completion_t)completion
                     error:(error_t)error;

#pragma mark - 专家详情页相关
//收藏专家到心愿单
- (void)collectExpertWithProUid:(NSInteger)proUid
                     completion:(completion_t)completion
                          error:(error_t)error;

//取消收藏专家
- (void)cancelCollectExpertWithProUid:(NSInteger)proUid
                           completion:(completion_t)completion
                                error:(error_t)error;

#pragma mark - 约见接口相关
//用户选择专家有空时间
- (void)chooseFreeWithFreeId:(NSInteger)freeId
                   consultId:(NSInteger)consultId
                    meetTime:(NSString *)meetTime
                     meetLoc:(NSString *)meetLoc
                  completion:(completion_t)completion
                       error:(error_t)error;

#pragma mark - 我的（用户）相关
//我约的行家订单列表
- (void)queryMyOrderListWithCursor:(NSInteger)cursor
                              type:(OrderStatusType)type
                        completion:(completion_t)completion
                             error:(error_t)error;

//我的心愿单
- (void)queryCollectListWithCursor:(NSInteger)cursor
                        completion:(completion_t)completion
                             error:(error_t)error;

//用户反馈
- (void)submitFeedbackWithPhone:(NSString *)phone
                        content:(NSString *)content
                     completion:(completion_t)completion
                          error:(error_t)error;

//当前用户信息接口
- (void)quaryUserInfoWithCompletion:(completion_t)completion
                              error:(error_t)error;

@end
